﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Web="clr-namespace:PivotViewerBase.Web" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" mc:Ignorable="d" x:Class="PivotViewerBase.ChildWindow1"
           Width="416" Height="271" 
           Title="ChildWindow1">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <riaControls:DomainDataSource x:Name="joiningTwoUnequalTables2DomainDataSource" AutoLoad="True" Height="0" LoadedData="joiningTwoUnequalTables2DomainDataSource_LoadedData_1" QueryName="GetJoiningTwoUnequalTables2Query" Width="0" d:DesignData="{d:DesignInstance Web:JoiningTwoUnequalTables2, CreateList=true}">
            <riaControls:DomainDataSource.DomainContext>
                <Web:AdventureWorksDomainContext/>
            </riaControls:DomainDataSource.DomainContext>
        </riaControls:DomainDataSource>
        <sdk:DataGrid x:Name="joiningTwoUnequalTables2DataGrid" AutoGenerateColumns="False" 
                      ItemsSource="{Binding Data, ElementName=joiningTwoUnequalTables2DomainDataSource}" 
                      Margin="1,0,-23,10"  HeadersVisibility="None" 
                      
                      RowBackground="White"
                      AlternatingRowBackground="{x:Null}" LoadingRow="joiningTwoUnequalTables2DataGrid_LoadingRow" 
                      GridLinesVisibility="Horizontal" IsReadOnly="True" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" AreRowDetailsFrozen="True">
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn x:Name="m_serial_noColumn" Binding="{Binding m_serial_no, Mode=OneWay}" Header="m serial no" IsReadOnly="True" Width="SizeToCells" Visibility="Collapsed"/>
                <sdk:DataGridTextColumn x:Name="property_cdColumn" Binding="{Binding property_cd, Mode=OneWay}" Header="property cd" IsReadOnly="True" Width="SizeToCells"/>
                <sdk:DataGridTextColumn x:Name="first_ftColumn" Binding="{Binding first_ft, Mode=OneWay}" Header="first ft" IsReadOnly="True" Width="SizeToCells"/>
                <sdk:DataGridTextColumn x:Name="rowColumn" Binding="{Binding row, Mode=OneWay}" Header="row" IsReadOnly="True" Width="SizeToCells" Visibility="Collapsed"/>
                <sdk:DataGridTextColumn x:Name="widthColumn" Binding="{Binding width, Mode=OneWay}" Header="width" IsReadOnly="True" Width="SizeToCells"/>
                <sdk:DataGridTextColumn x:Name="second_ftColumn" Binding="{Binding second_ft, Mode=OneWay}" Header="second ft" IsReadOnly="True" Width="SizeToCells"/>
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>
</controls:ChildWindow>